package day2;

/**
 * @author oldliu
 * @since 1.0
 */
public class Calculator2 {
    String name;//姓名

    /**
     * 求语文成绩
     * @param sr
     * @return
     */
    public int calcAvg(Student[]sr){
        int sum=0;
        for(Student s:sr)
            sum+=s.chinese;
        int avg=sum/sr.length;

        return avg;
    }
}
